//
//  YSDoViewManager.m
//  YSZC
//
//  Created by 张斌 on 16/4/12.
//  Copyright © 2016年 YueShiKeJi. All rights reserved.
//

#import "YSDoViewManager.h"

@implementation YSDoViewManager
+(instancetype)sharedmanager{
    
    static YSDoViewManager* instance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[YSDoViewManager alloc] init];
    });
    return instance;
}

// 切圆角的方法
- (void)settoyuanWithview:(NSArray*)views andR:(CGFloat)r {
    for (UIView* view in views) {
        view.layer.cornerRadius = r ;
        view.layer.masksToBounds = YES;
        
    }
}

- (void)setlineWithViews:(NSArray *)lines{
    
    for (NSLayoutConstraint * line in lines) {
        
        line.constant = 0.5;
    }
}

// 

@end
